package org.eclipse.gittab.player;

import org.eclipse.gittab.gitTabDsl.TabModel;
import org.eclipse.gittab.gitTabDsl.Tuning;
import org.eclipse.gittab.player.internal.midi.MidiSequenceComposer;
import org.eclipse.gittab.player.internal.midi.MidiSequencePlayer;

public class GitTabPlayerFactory {

	public static GitTabPlayer createComposerFor(TabModel tabModel) {

		Tuning tuning = tabModel.getTuning();

		return new GitTabPlayer(new MidiSequenceComposer(tuning.getStrings()
				.size()), new MidiSequencePlayer(), tabModel.getTuning());
	}
}
